package com.yc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yc.entity.TeacherDelays;

/**
 * 老师上课迟到表;(teacher_delays)表服务接口
 * @date : 2023-6-28
 */
public interface TeacherDelaysService{

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    TeacherDelays queryById(Integer id);


    /**
     * 分页查询
     *
     * @param teacherDelays 筛选条件
     * @param current 当前页码
     * @param size  每页大小
     * @return
     */
    Page<TeacherDelays> paginQuery(TeacherDelays teacherDelays, long current, long size);
    /**
     * 新增数据
     *
     * @param teacherDelays 实例对象
     * @return 实例对象
     */
    TeacherDelays insert(TeacherDelays teacherDelays);
    /**
     * 更新数据
     *
     * @param teacherDelays 实例对象
     * @return 实例对象
     */
    TeacherDelays update(TeacherDelays teacherDelays);
    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);
}
